package com.zengqingfa.shardingjdbc.demo.service;

import com.zengqingfa.shardingjdbc.demo.entity.Bill;
import com.zengqingfa.shardingjdbc.demo.entity.BillDTO;
import com.zengqingfa.shardingjdbc.demo.entity.BillRespDTO;

import java.util.List;

/**
 * @fileName: BillService
 * @author: zengqf3
 * @date: 2021-1-28 10:45
 * @description:
 */
public interface BillService {


    BillDTO create(BillDTO billDTO);

    Bill selectByPrimary(Long id, String tenantCode);

    List<BillRespDTO> queryBillAndDetail(Long id, String tenantCode);

    /**
     * 删除数据
     * @return
     */
    boolean deleteAll();

}
